package com.zxjbyte.yiyi.module.system.service.dict;

import com.zxjbyte.yiyi.framework.common.domain.api.PageResult;
import com.zxjbyte.yiyi.framework.mybatis.service.BaseServiceX;
import com.zxjbyte.yiyi.module.system.domain.entity.DictTypePO;
import com.zxjbyte.yiyi.module.system.domain.request.dict.DictTypeAddRequest;
import com.zxjbyte.yiyi.module.system.domain.request.dict.DictTypePageRequest;
import com.zxjbyte.yiyi.module.system.domain.response.dict.DictTypeDetailResponse;
import com.zxjbyte.yiyi.module.system.domain.response.dict.DictTypePageResponse;

import java.util.List;

/**
 * @Author zhangxingjia
 * @Date 2024/1/24 16:17
 * @Version: 1.0
 */
public interface IDictTypeService extends BaseServiceX<DictTypePO> {

    PageResult<DictTypePageResponse> page(DictTypePageRequest request);

    DictTypeDetailResponse detail(Long id);

    void add(DictTypeAddRequest request);

    List<DictTypePO> getByName(String name);
}
